package cn.source.system.service.impl;

import cn.source.system.domain.VipOrderModel;
import cn.source.system.mapper.VipOrderMapper;
import cn.source.system.service.IVipOrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author tubo
 * @date 2024/06/13
 */
@Service
public class VipOrderServiceImpl implements IVipOrderService {

    @Resource
    private VipOrderMapper vipOrderMapper;

    @Override
    public int insertVipOrder(VipOrderModel vipOrderModel) {
        return vipOrderMapper.insertVipOrder(vipOrderModel);
    }

    @Override
    public VipOrderModel findOne(String orderNo) {
        return vipOrderMapper.findOne(orderNo);
    }

    @Override
    public int update(VipOrderModel vipOrderModel) {
        return vipOrderMapper.update(vipOrderModel);
    }

    @Override
    public VipOrderModel findOneByOrderId(Long orderId) {
        return vipOrderMapper.findOneByOrderId(orderId);
    }
}
